<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/11/22
  Time: 9:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");

    String account = request.getParameter("account");
    String password = request.getParameter("password");
    String sex = request.getParameter("sex");
    String[] fav = request.getParameterValues("fav");
    String home = request.getParameter("home");
    String info = request.getParameter("info");
    String[] phone = request.getParameterValues("phone[]");

    out.println("账号："+account);
    out.println("密码："+password);
    out.println("性别"+sex);
    out.println("个人信息："+info);
    out.println("家乡："+home);
    out.println("爱好：");
    for (int i = 0; i < fav.length; i++) {
        out.println(fav[i]);
    }
    out.print("电话号码：");
    for (int i = 0; i < phone.length; i++) {
        out.println(phone[i]);
    }
    out.println("个人信息："+info);




%>
</body>
</html>
